package com.liwenfeng.diancanspringboot.service;

import com.liwenfeng.diancanspringboot.common.result.PageResult;
import com.liwenfeng.diancanspringboot.pojo.dto.EmployeeDTO;
import com.liwenfeng.diancanspringboot.pojo.dto.EmployeeLoginDTO;
import com.liwenfeng.diancanspringboot.pojo.dto.EmployeePageQueryDTO;
import com.liwenfeng.diancanspringboot.pojo.dto.PasswordEditDTO;
import com.liwenfeng.diancanspringboot.pojo.entity.Employee;

public interface EmployeeService {

    /**
     * 员工登录
     *
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    void save(EmployeeDTO employeeDTO);

    void editPassword(PasswordEditDTO passwordEditDTO);

    void changeStatus(Integer status, Long id);

    PageResult list(EmployeePageQueryDTO employeePageQueryDTO);

    Employee getById(Long id);

    void update(EmployeeDTO employeeDTO);

    void delete(Long id);

}
